package com.wisdomparking.service;

import java.util.List;
import java.util.Map;

import com.wisdomparking.bean.Orders;

public interface OrdersService {
	/**
	 * 添加
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean addOrders(Orders en, boolean sign);
	
	/**
	 * 修改
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean updateOrders(Orders en, boolean sign);
	
	/**
	 * 删除
	 * @param id
	 * @return boolean
	 */
	public boolean deleteOrdersById(Integer id);
	
	/**
	 * 查询
	 * @param id
	 * @return Orders
	 */
	public Orders getOrders(Integer id);
	
	/**
	 * 查询
	 * @param OrdersNumber
	 * @return
	 */
	public Orders getOrdersByOrdersNumber(String OrdersNumber);

	
	/**
	 * 获取对象列表
	 * @param map
	 * @return
	 */
	public List<Orders> getOrdersList(Map<String, Object> map);
	
	/**
	 * 获取记录总条数
	 * @param map
	 * @return long
	 */
	public long getCountByOrders(Map<String, Object> map);
}
